import {useModel} from '@@/plugin-model/useModel';


export default function CollapsedIcon(props: any) {
  const {collapsed} = props;
  const {setInitialState} = useModel('@@initialState');

  function tt() {
    setInitialState({
      collapsed: !collapsed
    });
  }

  return (
    <div onClick={tt}>{collapsed ? '展开' : '折叠'}</div>
  );
}
